package com.sport.model.setting.dtos;

import com.sport.model.application.pojos.SportMemberEnroll;
import com.sport.model.user.bos.AccountUserBo;
import lombok.Builder;
import lombok.Data;
import org.springframework.boot.context.properties.bind.DefaultValue;

import javax.validation.Valid;
import javax.validation.constraints.Negative;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SportNumberParamDto {

    @NotNull
    @NotBlank
    private String sportMemberGrade;

    private String sportMemberUnit;

    @NotNull
    private int maleStartNumber;
    @NotNull
    private int femaleStartNumber;

    private int maleCountBy=1;

    private int femaleCountBy=1;

    @NotNull

    private int maleEndNumber;

    @NotNull

    private int femaleEndNumber;

    @NotNull
    @Valid
    private List<SportMemberEnroll> maleList;

    @NotNull
    @Valid
    private List<SportMemberEnroll> femaleList;

    private AccountUserBo accountUserBo;
}
